import request from '@/utils/request'
// import { getToken } from '@/utils/storage'

export const getArticles = params => {
  return request.get('/interview/query', {
    params
    // 每次请求都要携带 token 所以不要在这里写 token, 而是加到请求拦截器中
    // headers: {
    //   Authorization: 'Bearer ' + getToken()
    // }
  })
}

export const getArticlesCollect = params => request.get('/interview/opt/list', { params })

export const getDetail = id => request.get('/interview/show', {
  params: {
    id
  }
})

export const getChangeFlag = data => request.post('/interview/opt', data)
